name: testsPCE run_id: commands[0] env LANG: en_US.UTF-8 env HOME: /home/jenkins env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin:/opt/pyenv/bin:/tmp/venv-VGNg/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/home/jenkins/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin env PYTHONHASHSEED: 3382447115 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env PIP_EXTRA_INDEX_URL: https://gitlab.com/api/v4/projects/33090323/packages/pypi/simple env TOX_ENV_NAME: testsPCE env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE metadata pid: 47193 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin/*:launch_tests.sh cmd: ./launch_tests.sh pce exit_code: 1 pytest -q transportpce_tests/pce/test01_pce.py FFFFFF...FF...FFFF.F [100%] =================================== FAILURES =================================== ________________ TransportPCEtesting.test_01_load_port_mapping _________________ self = def test_01_load_port_mapping(self): response = test_utils.post_portmapping(self.port_mapping_data) > self.assertIn(response['status_code'], (requests.codes.created, requests.codes.no_content)) E AssertionError: 401 not found in (201, 204) transportpce_tests/pce/test01_pce.py:112: AssertionError ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF TransportPCE build... Searching for pattern 'Transportpce controller started' in karaf.log... Pattern found! OpenDaylight started ! _____________ TransportPCEtesting.test_02_load_simple_topology_bi ______________ self = def test_02_load_simple_topology_bi(self): response = test_utils.put_ietf_network('openroadm-topology', self.simple_topo_bi_dir_data) > self.assertIn(response['status_code'], (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/pce/test01_pce.py:118: AssertionError ____________________ TransportPCEtesting.test_03_get_nodeId ____________________ self = def test_03_get_nodeId(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-SRG1', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/pce/test01_pce.py:124: AssertionError ____________________ TransportPCEtesting.test_04_get_linkId ____________________ self = def test_04_get_linkId(self): > response = test_utils.get_ietf_network_link_request( 'openroadm-topology', 'XPDRA01-XPDR1-XPDR1-NETWORK1toROADMA01-SRG1-SRG1-PP1-TXRX', 'config') transportpce_tests/pce/test01_pce.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ network = 'openroadm-topology' link = 'XPDRA01-XPDR1-XPDR1-NETWORK1toROADMA01-SRG1-SRG1-PP1-TXRX' content = 'config' def get_ietf_network_link_request(network: str, link: str, content: str): url = {'rfc8040': '{}/data/ietf-network:networks/network={}/ietf-network-topology:link={}?content={}', 'draft-bierman02': '{}/{}/ietf-network:networks/network/{}/ietf-network-topology:link/{}'} if RESTCONF_VERSION in ('rfc8040'): format_args = ('{}', network, link, content) elif content == 'config': format_args = ('{}', content, network, link) else: format_args = ('{}', 'operational', network, link) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'ietf-network-topology:link', 'draft-bierman02': 'ietf-network-topology:link'} > link = res[return_key[RESTCONF_VERSION]][0] E KeyError: 'ietf-network-topology:link' transportpce_tests/common/test_utils.py:528: KeyError _____________ TransportPCEtesting.test_05_path_computation_xpdr_bi _____________ self = def test_05_path_computation_xpdr_bi(self): > response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) transportpce_tests/pce/test01_pce.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-pce', rpc = 'path-computation-request' payload = {'pce-routing-metric': 'hop-count', 'resource-reserve': 'true', 'service-a-end': {'clli': 'NodeA', 'node-id': 'XPDRA01', 'service-format': 'Ethernet', 'service-rate': '100'}, 'service-handler-header': {'request-id': 'request1'}, ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-pce:output' transportpce_tests/common/test_utils.py:687: KeyError _____________ TransportPCEtesting.test_06_path_computation_rdm_bi ______________ self = def test_06_path_computation_rdm_bi(self): self.path_computation_input_data["service-a-end"]["node-id"] = "ROADMA01" self.path_computation_input_data["service-z-end"]["node-id"] = "ROADMC01" response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:153: AssertionError ____________ TransportPCEtesting.test_10_path_computation_xpdr_uni _____________ self = def test_10_path_computation_xpdr_uni(self): self.path_computation_input_data["service-a-end"]["node-id"] = "XPONDER-1-2" self.path_computation_input_data["service-a-end"]["clli"] = "ORANGE1" self.path_computation_input_data["service-z-end"]["node-id"] = "XPONDER-3-2" self.path_computation_input_data["service-z-end"]["clli"] = "ORANGE3" response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:188: AssertionError _____________ TransportPCEtesting.test_11_path_computation_rdm_uni _____________ self = def test_11_path_computation_rdm_uni(self): self.path_computation_input_data["service-a-end"]["node-id"] = "OpenROADM-2-1" self.path_computation_input_data["service-a-end"]["clli"] = "cll21" self.path_computation_input_data["service-z-end"]["node-id"] = "OpenROADM-2-2" self.path_computation_input_data["service-z-end"]["clli"] = "ncli22" response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:202: AssertionError ____________ TransportPCEtesting.test_15_success1_path_computation _____________ self = def test_15_success1_path_computation(self): self.path_computation_input_data["service-name"] = "service 1" self.path_computation_input_data["service-a-end"] = {"service-format": "Ethernet", "service-rate": "100", "clli": "ORANGE2", "node-id": "XPONDER-2-2"} self.path_computation_input_data["service-z-end"] = {"service-format": "Ethernet", "service-rate": "100", "clli": "ORANGE1", "node-id": "XPONDER-1-2"} self.path_computation_input_data["hard-constraints"] = {"customer-code": ["Some customer-code"], "co-routing": { "service-identifier-list": [{ "service-identifier": "Some existing-service"}] }} self.path_computation_input_data["soft-constraints"] = {"customer-code": ["Some customer-code"], "co-routing": { "service-identifier-list": [{ "service-identifier": "Some existing-service"}] }} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:265: AssertionError ____________ TransportPCEtesting.test_16_success2_path_computation _____________ self = def test_16_success2_path_computation(self): self.path_computation_input_data["service-a-end"]["node-id"] = "XPONDER-1-2" self.path_computation_input_data["service-a-end"]["clli"] = "ORANGE1" self.path_computation_input_data["service-z-end"]["node-id"] = "XPONDER-3-2" self.path_computation_input_data["service-z-end"]["clli"] = "ORANGE3" del self.path_computation_input_data["hard-constraints"] del self.path_computation_input_data["soft-constraints"] response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:282: AssertionError ____________ TransportPCEtesting.test_17_success3_path_computation _____________ self = def test_17_success3_path_computation(self): self.path_computation_input_data["hard-constraints"] = {"exclude": {"node-id": ["OpenROADM-2-1", "OpenROADM-2-2"]}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:298: AssertionError __ TransportPCEtesting.test_18_path_computation_before_oms_attribute_deletion __ self = def test_18_path_computation_before_oms_attribute_deletion(self): self.path_computation_input_data["service-a-end"]["node-id"] = "XPONDER-2-2" self.path_computation_input_data["service-a-end"]["clli"] = "ORANGE2" self.path_computation_input_data["service-z-end"]["node-id"] = "XPONDER-1-2" self.path_computation_input_data["service-z-end"]["clli"] = "ORANGE1" del self.path_computation_input_data["hard-constraints"] response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:317: AssertionError __ TransportPCEtesting.test_20_path_computation_after_oms_attribute_deletion ___ self = def test_20_path_computation_after_oms_attribute_deletion(self): response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 204 != 200 transportpce_tests/pce/test01_pce.py:344: AssertionError --------------------------- Captured stdout teardown --------------------------- all processes killed =========================== short test summary info ============================ FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_01_load_port_mapping FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_02_load_simple_topology_bi FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_03_get_nodeId FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_04_get_linkId FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_05_path_computation_xpdr_bi FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_06_path_computation_rdm_bi FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_10_path_computation_xpdr_uni FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_11_path_computation_rdm_uni FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_15_success1_path_computation FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_16_success2_path_computation FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_17_success3_path_computation FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_18_path_computation_before_oms_attribute_deletion FAILED transportpce_tests/pce/test01_pce.py::TransportPCEtesting::test_20_path_computation_after_oms_attribute_deletion 13 failed, 7 passed in 97.20s (0:01:37) standard error: which: no pytest-3 in (/w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin:/opt/pyenv/bin:/tmp/venv-VGNg/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/home/jenkins/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin)